import 'package:earclean/app/request/request_main.dart';
import 'package:earclean/app/util/common_utils.dart';
import 'package:get/get.dart';


class ZhuxiaoController extends GetxController {
  final tip = ''.obs;
  @override
  void onInit() {
    super.onInit();
  }

  @override
  void onReady() async {
    dynamic mobile =  box.read("mobile");
    
    Map? m = await RequestMain.getUrl({
      "cancel_member": mobile,
    });
    if (m.isNotEmpty && m['code'].toString() == "200") {
      tip.value = m['data']['tip'] ?? "";
    }
    super.onReady();
  }

  @override
  void onClose() {}
}
